package vn.njai.thousand_english_word;

import android.app.Application;
import android.content.Context;
import android.util.DisplayMetrics;
import vn.njai.thousand_english_word.Utils.TypefaceUtil;
import vn.njai.thousand_english_word.Utils.Utils;

public class CustomApplication extends Application {
    private String TAG = "CustomApplication";
    public static Context context;

    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        TypefaceUtil.overrideFont(context, "SERIF", getString(R.string.font_name));

        DisplayMetrics displaymetrics = getApplicationContext().getResources().getDisplayMetrics();
        Utils.mScreenWeight = displaymetrics.widthPixels;
        Utils.mScreenHeight = displaymetrics.heightPixels;

    }
}